/*
 * <cf_binding element="#" bind="">
 */

var updateSecondSelect = function(markup) {
	$("#secondSelect").html(markup);
}

$(document).ready(function() {
	// one of these for each bind in a comma-delimited bind="..., ..." list
	$("#firstSelect").bind("change", function() {
		jQuery.getJSON("http://domain.com/Service/Account/userFriends/" + $(this).attr("value"), function(data) {
			updateSecondSelect(data);
		});
	});
});
